package org.imfuture.pocketzk.core.dao;

import org.imfuture.pocketzk.core.model.BaseObject;

import java.util.List;

/**
 * Created on: 2007/10/26
 *
 * @author Alan She(scw1109)
 */
public interface GenericDao<E extends BaseObject> {

    E findById(Long id, boolean lock);

    List<E> findAll();

    E makePersistent(E entity);

    void makeTransient(E entity);
}
